package com.xs.tool.common.excel.model;


import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ Author     ：scw
 * @ Date       ：Created in 下午 9:19 2020/3/31 0031
 * @ Description：Excel处理结果
 * @ Modified By：
 * @Version: $version$
 */
@Data
public class ExcelImportResultDto {
    // 导入成功的消息列表
    private List<ImportSuccessDto> successDtoList;
    // 导入失败的消息列表
    private List<ImportFailDto> failDtoList;

    public ExcelImportResultDto(List<ImportSuccessDto> successDtoList, List<ImportFailDto> failDtoList) {
        this.successDtoList = successDtoList;
        this.failDtoList = failDtoList;
    }

    public ExcelImportResultDto(List<ImportFailDto> failDtoList) {
        this.failDtoList = failDtoList;
        this.successDtoList = new ArrayList<>();
    }

    public List<ImportSuccessDto> getSuccessDtoList() {
        return successDtoList;
    }

    public void setSuccessDtoList(List<ImportSuccessDto> successDtoList) {
        this.successDtoList = successDtoList;
    }

    public List<ImportFailDto> getFailDtoList() {
        return failDtoList;
    }

    public void setFailDtoList(List<ImportFailDto> failDtoList) {
        this.failDtoList = failDtoList;
    }
}
